/* ======================全局CSS样式====================== */
html,body,ul,li,p{
	margin: 0;
	padding: 0;
}
html,body{
    width: 100%;
}
ul{
	list-style: none;
}
a{
    color: #000;
	text-decoration: none;
}
.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}
img{
    border: none;
    display: block;
}



/* ======================header部分====================== */
header{
    height: 12vw;
}

/* ======================上导航条====================== */
.top_nav {
    background-color: #F2F2F2;
    width: 100%;
    overflow: hidden;
    height: 12vw;

}
.top_nav .search{
    width: 100%;
    height: 12vw;
    background-color: #F2F2F2;
    display: flex;
    align-items: center;
}
.top_nav .search .logo{
    flex: 0 0 15.4vw;
    font-size: 8vw;
    display: flex;
    justify-content: center;
    align-items: center;
    
}
.top_nav .search .box{
    flex-grow: 1;/* 填满 */
    height: 8vw;
    background-color: #F2F2F2;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    border: solid .1vw #a4a4a4;
    border-radius: 4vw;
    overflow: hidden;
}

.top_nav .search .box div{
    width: 100%;
    border: none;
    background-color: #F2F2F2;
    outline: none;/* 控制聚焦时不出现边框 */
    overflow: hidden;
    margin-right: 2vw;
    font-size: 3vw;
    color: #8a8a8a;
}

.top_nav .search .box .icon{
    font-size: 7vw;
    margin: 0 5px;
}
.top_nav .service{
    flex: 0 0 15.4vw;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6vw;
    color: #F2F2F2;
}





/* ======================内容部分====================== */
section{
    width: 100%;
}

/* ======================type选项卡部分====================== */

section .tab{
    width: 100%;

}
section .tt{
    width: 100%;
    height: 8vw;
    font-size: 3vw;
    display: flex;
    overflow: hidden;
    top: 0;
    left: 0;
    background-color: #FFF;
    z-index: 3;/* 优先级：数字越高优先级越大 越显示 */
    padding: 2vw 0;

}
section .tt span{
    width: 25%;
    text-align: center;
    letter-spacing: 1vw;
    color: #000;
    font-size: 2.4vw;
}

section .tt .ty1{
    text-align: center;
    font-size: 2vw;
    line-height: 4vw;
}

section .tt .cur{
    color: #ff8800;
    font-weight: bold;
    text-align: center;
}

section .tt .cur .ty1{
    background-color: #FFF;
    text-align: center;
    color: #FFF;
    background-color: #ff8800a3;
    border-radius: 2vw;
    font-size: 2vw;
    margin: 0 5px;
    line-height: 4vw;
}

section .tcSet{
    padding: 0 2vw;
}

section .tc{
    width: 100%;
    border-radius: 2vw;
    border-top: none;
    display: none;/* 默认隐藏 */
 /* background-color: #c5ff6f;      --测试用*/

    
}
section .show{
    display: block;
}


/* ======================banner轮播图====================== */

section .lunbo{
    margin: 1.5vw;
}
section .banner{
    border-radius: 15px;
    box-shadow: 0 0 2vw #9b9b9b;
    width: 100%;
    overflow: hidden;/* 溢出隐藏 */
}
section .banner>ul{
    width: 500%;
    overflow: hidden;/* 溢出隐藏BFC */
    animation: lunbo 15s infinite;
    /*参数如下：关键帧名，播放时间，怎么播放 infinite（无限播放）  */
}
section .banner li{
    width: 20%;/* 5个屏幕宽度的20%=1个屏幕的宽度 */
    float: left;
}
section .banner img{
    width: 100%;/* 一个屏幕的宽度 */
}
/* 关键帧 */
@keyframes lunbo{
    10%{margin-left: 0;}/* from 10秒的10% ,0-1s */
    20%{margin-left: -100%;}/* 1-2s */
    30%{margin-left: -100%;}
    40%{margin-left: -200%;}/* 走2个 */
    50%{margin-left: -200%;}
    60%{margin-left: -300%;}/* 走3个 */
    70%{margin-left: -300%;}
    80%{margin-left: -400%;}
    90%{margin-left: -400%;}
    100%{margin-left: 0;}/* 回到原点 */
}



/* ======================种类type 样式====================== */
section .type_list{
    width: 100%;
    height: 40vw;
    overflow: hidden;
}

section .type{
    width: 100%;
    line-height: 9vw;
    display: flex;
    flex-wrap: wrap;
}

section .type li{
    width: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
}

section .type li img{
    width: 10vw;
    margin-bottom: 0.9vw;
}
section .type li a{
    font-size: 3vw;
    color: #626262;
}

/* ======================banner下文字设置====================== */

section .banner_ul{
    width: 100%;
    display: flex;
    text-align: center;
    justify-content: space-around;
    margin-top: 2vw;
}
section .banner_ul>li{
    line-height: 6vw;
    box-sizing: border-box;
    font-size: 3.4vw;
    overflow: hidden;
    padding: 0 5vw;
}
section .banner_ul>li:nth-child(even){
    border-left: .1vw solid #c5c5c5;
    border-right: .1vw solid #c5c5c5;

}

/* ======================商品goods区域====================== */

.goods .slist{
    width: 100%;
    display: flex;
    text-align: center;
    flex-wrap: wrap;
    justify-content: space-evenly;
}
.goods .slist>li{
    width: 45%;
    margin:1vw;
    background-color: #f2f2f2;
    border-radius: 2vw;
    flex-grow: 1;/* 把剩余空间沾满！ */

}
.goods .slist img{
    width: 100%;
    border: none;
}
.goods .slist h3{
    font-size: 4vw;
    color: #333;
    margin-top: 1vw;
    /*文本溢出时显示省略号*/
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;    
}
.goods .slist p{
    text-align: center;
    text-overflow: ellipsis;/*文字溢出：显示出省略号*/
    overflow: hidden;/*溢出隐藏*/
    white-space: nowrap;/*文字不换行*/
    font-size: 3.6vw;
    color: #000000;
    margin-bottom: 2vw;
    padding: 0 10px;

}
.goods .slist span{
    text-overflow: ellipsis;/*文字溢出：显示出省略号*/
    overflow: hidden;/*溢出隐藏*/
    white-space: nowrap;/*文字不换行*/
    color: red;
    margin: 5px 0;

}
.goods .slist .buybtn{
    background-color: #ff6363;
    border-radius: 3vw;
    margin: 2vw 5vw;
    color: #FFF;
    line-height: 7vw;
    text-overflow: ellipsis;/*文字溢出：显示出省略号*/
    overflow: hidden;/*溢出隐藏*/
    white-space: nowrap;/*文字不换行*/
    font-size: 4vw;
}





/* ======================下导航====================== */
footer{
    width: 100%;
    height: 16vw;
}
footer .bottom_nav{
    position: fixed;
    left: 0;
    bottom: 0;
    background-color: #F2F2F2;
    z-index: 9;
    width: 100%;
    overflow: hidden;
    height: 16vw;

}
footer .bottom_nav>ul{
    display: flex;
}
footer .bottom_nav li{
    width: 20%;
    text-align: center;
}
footer .bottom_nav .icon{
    font-size: 7vw;
    margin: 2vw 0;
    
}
footer .bottom_nav p{
    color: #626262;
    line-height: 2vw;
    letter-spacing: .4vw;
    font-size: 3vw;
    
}


/* 返回顶部样式 */
section .toTop{
    position: fixed;
    top: 75%;
    right: 5%;
    background-color: #0000008e;
    color: #fff;
    width: 20vw;
    border-radius: 22vw;
    padding: 2vw;
    text-align: center;
    display: block;
    z-index: 222;
    font-size: 3vw;
}